package com.hgzy.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 左边菜单栏
 * @author : look-word
 * @date : 2022-01-15 10:33
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {
    private Integer id;
    private Integer pid;
    private String  icon;
    private String  title;
    private String  href;
    private boolean  spread;
    private List<TreeNode> children =new ArrayList<>();

    public TreeNode(Integer id, Integer pid, String icon, String title, String href, boolean spread) {
        this.id = id;
        this.pid = pid;
        this.icon = icon;
        this.title = title;
        this.href = href;
        this.spread = spread;
    }
}
